*** Stata commands for the article: REWARDING GOOD POLITICAL BEHAVIOR: US AID, DEMOCRACY, AND HUMAN RIGHTS, by Zohid Askarov, Hristos Doucouliagos, Martin Paldam, and T.D. Stanley, published in the European Journal of Political Economy.
*** The raw data are located in the file: Primary Study Data with Human Rights August 5 2021.dta
*** Please note:
*(1) 0 values have been inserted in several instances where there were blank aid committments to enable Tobit estimation. These should be discarded when using OLS, as per below commands. We deem the OLS results as more reliable as they use the data as reported. The Tobit estimations were removed from the article as part of the review process.
*(2) In the raw data file, positive values for HR denote human rights violations. Hence, the sign on the estimated coefficient on the human rights variable, HR, needs to be reversed to aid interpretation in terms of human rights improvements.  
*(3) Israel is removed from all the analysis (country code, ccode = 664).

*** Key variable definitions:

* PerCapitaCOMITAID = real (2014 USD) value of per capita aid committed 
* gdppercapitaconstant2010us = GDP per capita in real (2010 USD)
* gdppercapitagrowthannual = growth rate in GDP per capita in real (2010 USD)
* population = population level
* democrat = Share of House controlled by Democratic Party
* polity2 = Democracy measured by Polity2 index (Note: higher values means more democracy)
* HR = human rights score (Note: higher values means more human rights violations)
* tradeofgdp = exports and imports as a share of GDP

* set panel structure
xtset ccode year

*** Table 3: Explaining US Aid Flows, 1966-2015, real US per capita aid
** row(1), All countries
xtreg PerCapitaCOMITAID gdppercapitaconstant2010us gdppercapitagrowthannual population c.democrat##c.polity2 tradeofgdp i.year if ccode !=664 & PerCapitaCOMITAID !=0, fe vce(cluster ccode)
sum PerCapitaCOMITAID democrat polity2 HR if ccode !=664 & PerCapitaCOMITAID !=0
lincom polity2 + c.democrat#c.polity2 * .545247 
** row(2), All countries with HR interactions
xtreg PerCapitaCOMITAID gdppercapitaconstant2010us gdppercapitagrowthannual population c.democrat##c.polity2 c.democrat##c.HR tradeofgdp i.year if ccode !=664 & PerCapitaCOMITAID !=0, fe vce(cluster ccode)
lincom polity2 + c.democrat#c.polity2 * .545247 
lincom HR + c.democrat#c.HR * .545247 
*** row(3) Latin
sum PerCapitaCOMITAID gdppercapitaconstant2010us gdppercapitagrowthannual population democrat polity2 HR tradeofgdp if ccode !=664 & PerCapitaCOMITAID !=0 & latinamericacaribbean ==1
xtreg PerCapitaCOMITAID gdppercapitaconstant2010us gdppercapitagrowthannual population c.democrat##c.polity2 c.democrat##c.HR tradeofgdp i.year if ccode !=664 & PerCapitaCOMITAID !=0 & latinamericacaribbean ==1, fe vce(cluster ccode)
lincom polity2 + c.democrat#c.polity2 * .545247 
lincom HR + c.democrat#c.HR * .545247 
*** row(4) Africa
xtreg PerCapitaCOMITAID gdppercapitaconstant2010us gdppercapitagrowthannual population c.democrat##c.polity2 c.democrat##c.HR tradeofgdp i.year if ccode !=664 & PerCapitaCOMITAID !=0 & africa ==1, fe vce(cluster ccode)
lincom polity2 + c.democrat#c.polity2 * .545247 
lincom HR + c.democrat#c.HR * .545247 
*** row(5)MENA
xtreg PerCapitaCOMITAID gdppercapitaconstant2010us gdppercapitagrowthannual population c.democrat##c.polity2 c.democrat##c.HR tradeofgdp i.year if ccode !=664 & PerCapitaCOMITAID !=0 & mena ==1, fe vce(cluster ccode)
lincom polity2 + c.democrat#c.polity2 * .545247 
lincom HR + c.democrat#c.HR * .545247 
*** row(6) ASIA
xtreg PerCapitaCOMITAID gdppercapitaconstant2010us gdppercapitagrowthannual population c.democrat##c.polity2 tradeofgdp i.year if ccode !=664 & PerCapitaCOMITAID !=0 & ASIA ==1, fe vce(cluster ccode)
xtreg PerCapitaCOMITAID gdppercapitaconstant2010us gdppercapitagrowthannual population c.democrat##c.polity2 c.democrat##c.HR tradeofgdp i.year if ccode !=664 & PerCapitaCOMITAID !=0 & ASIA ==1, fe vce(cluster ccode)
lincom polity2 + c.democrat#c.polity2 * .545247 
lincom HR + c.democrat#c.HR * .545247 



